﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

using Volo.Abp.Domain.Repositories;
using BootstrapBlazor.Components;

namespace CodeMan.Domain.ClassGens
{
    public interface IClassGenBlazorUIRepository : IRepository<ClassGen, Int64>
        , IEntityFrameworkCoreDataService, IDataService<ClassGen>
    {
        public void SetTypeSearch(Type type);
        Task<IReadOnlyList<ClassGen>> GetClassGensAsync(Int64 tkey);
        Task<IReadOnlyList<ClassAttribute>> GetClassAttributesAsync(Int64 classGensId);
        Task<IReadOnlyList<ClassGen>> GetClassGensAllAsync();
        Task<IReadOnlyList<ClassAttribute>> GetClassAttributesAllAsync();
        Task SaveClassAndAtt(ClassGen classGen, List<ClassAttribute> classAttributes);
    }
}
